// https://www.npmjs.com/package/@rollup/pluginutils

import { createFilter } from '@rollup/pluginutils'

function myPlugin(options = {}) {
  // assume that the myPlugin accepts options of `options.include` and `options.exclude`
  var filter = createFilter(options.include, options.exclude, {
    resolve: '/my/base/dir'
  })
  const isFilter = filter(
    `G:/projects/Project_manage/studyCategory_projects/项目包相关的/rollup/collectionTools/src/utils/throttle.ts`
  )
  console.log(isFilter)
}

myPlugin({ include: ['*ts'] })
